#include <stdio.h>
#include <stdlib.h>

#include "symbolMgt.h"
int main( int argc, char *argv[] )
{
  int p;
  char *treeName;

  p = isInSymbolTable("AA");
  if (p == 0) 
{
fprintf(stderr, "AA not found\n");
}
  else
    {
fprintf(stderr, "AA found\n");
    }

  insertInSymbolTable( "YY", TREE_NODE );
  insertInSymbolTable( "VV", TREE_NODE );
  insertInSymbolTable( "WW", TREE_STRUCT );
  insertInSymbolTable( "XX", TREE_NODE );
  insertInSymbolTable( "ZZ", TREE_NODE );
  insertInSymbolTable( "VV", TREE_NODE );

  p = isInSymbolTable("XX");
  if (p == 0) 
{
fprintf(stderr, "XX not found\n");
}
  else
    {
fprintf(stderr, "XX found\n");
    }


  fprintf( stderr, "------------ symbolTable :\n");
  printSymbolTable( );
  fprintf( stderr, "\n" );

  treeName = firstTreeStructSymbolName( );
  fprintf( stderr, "treeName = %s\n",  treeName);
  return EXIT_SUCCESS;
}

